﻿<?php echo $session->flash(); ?>
<div id="content-table-inner">
	<div id="table-content">
	<form id="page" method="post" action="/clients" enctype="application/x-www-form-urlencoded">
	<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">

		<tr>
			<th class="table-header-check line-left"><a id="toggle-all" ></a> </th>
			<th class="table-header-repeat line-left" ><?php echo __('Code', true); ?></th>
			<th class="table-header-repeat line-left"><?php echo $html->link(__('Date', true),'#'); ?></th>
			<th class="table-header-repeat line-left"><?php echo $html->link(__('Order Information', true),'#'); ?></th>
			<th class="table-header-repeat line-left"><?php echo $html->link(__('Delivery Information', true),'#'); ?></th>
			<th class="table-header-repeat line-left"><?php echo $html->link(__('Status', true),'#'); ?></th>
			<th class="table-header-repeat line-left"><?php echo $html->link(__('Action', true),'#'); ?></th>
		</tr>
		<tbody>
			<?php foreach ($members as $item) {?>
			<tr>
				<td><input type="checkbox" value="<?php echo $item['Order']['id']; ?>" /></td>
				<td align="center">
				<?php echo $item['Order']['id']; ?>
			</td>

			<td align="left">
				<?php echo $item['Order']['date']; ?>
			</td>
			<td align="left">
				<?php
					echo $item['Order']['bill_name'];
					echo "<br/>";
					echo $item['Order']['bill_address'];
					echo "<br/>";
					echo $item['Order']['bill_phone'];
				?>
			</td>
				
			<td align="left">
				<?php
					echo $item['Order']['delivery_name'];
					echo "<br/>";
					echo $item['Order']['delivery_address'];
					echo "<br/>";
					echo $item['Order']['delivery_phone'];
				?>
			</td>
			<td align="center">
				<?php
					echo ($item['Order']['status']? "Confirmed" : "Waiting");
					
				?>
			</td>
			<td  class="options-width">
					<a href="<?php echo Router::url(array('controller' => 'order', 'action' => 'edit', $item['Order']['id'])) ; ?>" title="Edit" class="icon-1 info-tooltip"></a>				</td>
			</tr>
			<?php } ?>
		</tbody>
	</table>
	</form>
	</div>

</div>

